//
// File:	AbstractRenderCanvas.hpp
// Author:	Thomas TISSOT-DUPONT
// Login:	<thomas.tissotdupont@free.fr>
//
// Create:	29/01/2010 at 02:19:57
// Purpose:	
//
#ifndef ABSTRACTRENDERCANVAS_HPP
#define ABSTRACTRENDERCANVAS_HPP

#include <SFML/Graphics.hpp>
#include <QtGui/QWidget>
#include <QtCore/QTimer>

class AbstractRenderCanvas : public QWidget, public sf::RenderWindow
{
	Q_OBJECT

public:

							AbstractRenderCanvas(QWidget *pParent = NULL, unsigned int iFrameTime = 0);
	virtual					~AbstractRenderCanvas();

public:
	virtual void			Init();
	virtual void			Update() = 0;
	
public:
	virtual void			paintEvent(QPaintEvent *);
	virtual QPaintEngine	*paintEngine() const;
};

#endif //!ABSTRACTRENDERCANVAS_HPP
